package com.jiaoyou.baojian.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiaoyou.baojian.R;
import com.jiaoyou.baojian.entity.GiftEntity;
import com.jiaoyou.baojian.entity.MessageEntity;
import com.jiaoyou.baojian.utils.Utils;

import java.util.Map;

/**
 * Created by DemonZYM on 17/4/13.
 */

public class GiftAdapter extends BaseQuickAdapter<GiftEntity, BaseViewHolder> {

    public GiftAdapter() {
        super(R.layout.item_room_gift);
    }

    @Override
    protected void convert(BaseViewHolder helper, GiftEntity item) {
        Utils.showGiftImage(mContext, item.getImg(), (ImageView) helper.getView(R.id.gift_icon));
        helper.setText(R.id.gift_name, item.getCandy() + "豆");
    }
}
